<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div id="all" >
  <div id="update_div_body">
 		<form  action="${pageContext.request.contextPath}/resources/update" method="post" id="update_resources_form"
 		 class="pageForm required-validate" onsubmit="return iframeCallback(this,navTabAjaxDone);">
 			<div layouth="56" class="pageFormContent" style="height: 150px; ">
				<p>
					<label>上级资源：</label>
					<select name="parentId" class="required textInput">
						<option value="1010">顶级菜单</option>
						<c:forEach var="key" items="${resLists}">
							<option value="${key.id}" <c:if test="${key.id eq resources.parentId}">selected="selected"</c:if>>${key.name}</option>
						</c:forEach>
					</select>
				</p>
				<p>
					<label>资源名称：</label>
					<input type="hidden"  id="name" name="id" value="${resources.id}"/>
					<input type="text" class="required textInput" id="name" name="name" value="${resources.name}"/>
				</p>
				<p>
					<label>资源KEY：</label>
					<input type="text" class="required textInput" id="resKey" name="resKey" value="${resources.resKey }"/>
				</p>
				<p>
					<label>资源URL：</label>
					<input type="text" class="required textInput" id="resUrl" name="resUrl" value="${resources.resUrl }"/>
				</p>
				<p>
					<label>资源类型：</label>
					<input name="type" type="radio" value="0" <c:if test="${resources.type eq '0'}">checked="checked"</c:if>/>:目录　　
					<input name="type" type="radio" value="1" <c:if test="${resources.type eq '1'}">checked="checked"</c:if>/>:菜单　　
					<input name="type" type="radio" value="2" <c:if test="${resources.type eq '2'}">checked="checked"</c:if>/>:按扭
				</p>
				<p>
					<label>优先级：</label>
					<input type="text" class="textInput" id="level" name="level" value="${resources.level }"/>
				</p>
				<p>
					<label>资源描述：</label>
					<input type="text" class="textInput" id="description" name="description" value="${resources.description }"/>
				</p>
				
				
			</div>
	 			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit" >保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button class="close" type="button">取消</button></div></div>
					</li>
				</ul>
			</div>
 		</form>
  </div>
</div>